package com.trt.api.controller.user;

import com.trt.pojo.dto.AppUserBO;
import com.trt.utils.ApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * @author tanrentao
 * @date 2021-12-01
 * @desc
 */
@Api(value = "用户信息相关", tags = "{用户信息相关的controller}")
@RequestMapping("user")
public interface UserControllerApi {

    @ApiOperation(value = "获得用户信息", notes = "获得用户信息", httpMethod = "POST")
    @PostMapping("/getAppUserInfo")
    public ApiResult getAppUserInfo(@RequestParam String userId);

    @ApiOperation(value = "获得用户基本信息", notes = "获得用户基本信息", httpMethod = "POST")
    @PostMapping("/getAppUserBasicInfo")
    public ApiResult getAppUserBasicInfo(@RequestParam String userId);

    @ApiOperation(value = "修改/完善用户信息", notes = "修改/完善用户信息", httpMethod = "POST")
    @PostMapping("/updateAppUser")
    public ApiResult updateAppUser(@Valid @RequestBody AppUserBO appUserBO, BindingResult result);

}
